@echo off
echo Building VC++2005 DevOps Platform...

call "C:\Program Files (x86)\Microsoft Visual Studio 8\VC\vcvarsall.bat" x86

if not exist build mkdir build

cl.exe /nologo /c /MT /O2 /DNDEBUG /Isrc /Fobuild\main_final.obj src\main-final.cpp

if %errorlevel% neq 0 exit /b 1

link.exe /nologo /OUT:build\DevOpsPlatform-final.exe build\main_final.obj kernel32.lib user32.lib

if %errorlevel% equ 0 (
    echo Build successful!
    build\DevOpsPlatform-final.exe status
) else (
    echo Build failed!
    exit /b 1
)
